package com.caifu.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 日账单表
 * </p>
 *
 * @author GZ
 * @since 2020-11-06
 */
@Data
public class YlDayBill extends Model<YlDayBill> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（日账单表）
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 老人编号
     */
    @TableField("USER_NO")
    private String userNo;

    /**
     * 床位等级
     */
    @TableField("BED_DEGREE")
    private String bedDegree;

    /**
     * 床位费(每天)
     */
    @TableField("BED_FEE")
    private Double bedFee;

    /**
     * 护理等级
     */
    @TableField("NURSING_DEGREE")
    private String nursingDegree;

    /**
     * 护理费(每天)
     */
    @TableField("NURSING_FEE")
    private Double nursingFee;

    /**
     * 长护险等级
     */
    @TableField("ASSEMENT_DEGREE")
    private String assementDegree;

    /**
     * 长护险费用
     */
    @TableField("ASSEMENT_FEE")
    private Double assementFee;

    /**
     * 总费用
     */
    @TableField("MEAL_FEE")
    private Double mealFee;

    /**
     * 账单日期
     */
    @TableField("BILL_DATE")
    private String billDate;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "YlDayBill{" +
        "id=" + id +
        ", userNo=" + userNo +
        ", bedDegree=" + bedDegree +
        ", bedFee=" + bedFee +
        ", nursingDegree=" + nursingDegree +
        ", nursingFee=" + nursingFee +
        ", assementDegree=" + assementDegree +
        ", assementFee=" + assementFee +
        ", mealFee=" + mealFee +
        ", billDate=" + billDate +
        ", createTime=" + createTime +
        "}";
    }
}
